﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MVCGenerator
{
    public class SpaceStackStringBuilder 
    {
        private StringBuilder sb = new StringBuilder();
        private SpaceStack ss = new SpaceStack();

        public void AppendLine()
        {
            sb.AppendLine();
        }

        public void AppendLine(String s)
        {
            sb.AppendLine(ss.ToString() + s);
        }

        public void AppendStart()
        {
            sb.Append(ss.ToString());
        }

        public void Append(String s)
        {
            sb.Append(s);
        }

        public override string ToString()
        {
            return sb.ToString();
        }

        public void AddSpace()
        {
            ss.Add();
        }

        public void RemoveSpace()
        {
            ss.Remove();
        }
    }
}
